home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00264_text entry number 2.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  661 b   |  27 lines

  1. on enterFrame
  2.   global firstTime, goOn, gPlaySound, goQuick, audioPath, notOn
  3.   if gPlaySound then
  4.     frameNum = the frame
  5.     soundFile = getAudioFile(frameNum)
  6.     sound playFile 1, audioPath & soundFile & ".AIF"
  7.     gPlaySound = 0
  8.   end if
  9. end
  10.  
  11. on exitFrame
  12.   global firstTime, goOn, notClicked, gMenuButton, gMenuExit, gPlaySound, notOn, gTourForwardArrow, gTourBackArrow, gTiming
  13.   repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
  14.     doRollover(rc)
  15.   end repeat
  16.   if soundBusy(1) then
  17.     go(the frame)
  18.   else
  19.     gTiming = 1
  20.     goOn = 0
  21.     firstTime = 1
  22.     gPlaySound = 1
  23.     notOn = 1
  24.     go(the frame + 1)
  25.   end if
  26. end
  27.